package validate

//验证层

type Login struct {
	Username string `gorm:"column(Username)" json:"username" binding:"required"`
	Password string `gorm:"column(Password)" json:"password" binding:"required"`
}

type SystemAdd struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
	Nickname string `json:"nickname" binding:"required"`
	Tel      string `json:"tel" binding:"required"`
	Headimg  string `json:"headimg" binding:"required"`
}

type SystemEdit struct {
	Id       string `json:"id" binding:"required"`
	Nickname string `json:"nickname" binding:"required"`
	Tel      string `json:"tel" binding:"required"`
	Headimg  string `json:"headimg" binding:"required"`
}

type SystemEditPwd struct {
	Id       string `json:"id" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type SystemEditStatus struct {
	Id     string `json:"id" binding:"required"`
	Status string `json:"status" binding:"required"`
}

type SystemEditHeadImg struct {
	Id      string `json:"id" binding:"required"`
	Headimg string `json:"headimg" binding:"required"`
}
